<template>
    <div class="header">
        <div class="content-wrap">
            <div>
                <slot></slot>
            </div>
            <div class="right">
                <a href="#" @click="$router.push('/')" style="margin-right: 30px">首页</a>
                <a href="#" @click="$router.push('/aboutUs')" >关于我们</a>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    name: 'common-header'
}
</script>

<style lang="less" scoped>
.header {
    margin-bottom: 30px;
    background: #06256f url("@/assets/img/banner2.jpg") no-repeat;
    background-size: cover;
    height: 300px;
}

.content-wrap {
    margin: 0 auto;
    padding: 30px 10px;
    width: 1200px;
    display: flex;
    justify-content: space-between;
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    box-sizing: border-box;

    .right {
        display: flex;
        align-items: center;
        padding: 4px 20px;
        height: 26px;
        font-size: 14px;
        line-height: 20px;
        color: #fff;
        background: #4472c4; // #607cfc;
        border-radius: 20px;

        a:nth-child(1):after {
            content: '';
            margin-left: 30px;
            border-right: 1px solid #fff;
        }
    }
}

a {
    color: #fff;
    text-decoration: none;

    &:hover {
        text-decoration: underline;
    }
}
</style>